import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'



const routes = [

  {
    path: '/',
    name: 'main_login',
    component: () => import('../views/login')
  },{

  path: '/manager',
    name: 'manager',
    component: () => import('../views/manager'),
    children:[
      {
        path: '/home',
        name: 'home',
        component: () => import('../views/manager/home')

      },
      {
        path: '/course',
        name: 'course',
        component: () => import('../views/manager/Course')
      },{
        path: '/user',
        name: 'user',
        component: () => import('../views/manager/user')
      },{
        path: '/StuCourse',
        name: 'StuCourse',
        component: () => import('../views/manager/StuCourse')
      },{
        path: '/Person',
        name: 'Person',
        component: () => import('../views/manager/Person')
      },{
        path: '/SelectCourse',
        name: 'SelectCourse',
        component: () => import('../views/manager/SelectCourse')
      },{
        path: '/stuSelectCourse',
        name: 'StuSelectCourse',
        component: () => import('../views/manager/StuSelectCourse')
      }
      ,{
        path: '/ManagerSelectCourse',
        name: 'ManagerSelectCourse',
        component: () => import('../views/manager/ManagerSelectCourse')
      }
      ,{
        path: '/Selectgarde',
        name: 'Selectgarde',
        component: () => import('../views/manager/Selectgarde')
      },{
        path: '/stugardefeedback',
        name: 'stugardefeedback',
        component: () => import('../views/manager/stugardefeedback')
      }




    ]
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },{
    path: '/register',
    name: 'register',
    component: () => import('../views/Register')
  },{
    path: '/login',
    name: 'login',
    component: () => import('../views/login')
  }

]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
